const EventEmitter = require('events').EventEmitter;

function Radio(station) {

  for(let m in EventEmitter.prototype){
    this[m] = EventEmitter.prototype[m];
  }

  setTimeout(() => {
    this.emit('play', station);
              
  }, 0);

  setTimeout(() => {
    this.emit('stop', station);
              
  }, 5000);

}


module.exports = Radio;
